package cloudLibrary;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class User_Has_Item {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key transactionID;

	@Persistent
	private Users user;

	@Persistent
	private Item item;
	
	public User_Has_Item(Users user, Item item) {
		this.item = item;
		this.user = user;
        
    }
	
	
	
	public Key getTransactionID() {
		return transactionID;
	}


	public void setTransactionID(Key transactionID) {
		this.transactionID = transactionID;
	}



	public Users getUser() {
		return user;
	}

	public void setUser(Users user) {
		this.user = user;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}
	
	
}
